summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-28 13:08:32 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-28 13:08:32 +0000
commit0b28b9f3e982eaeb833ca130de2c30c7784ebae5 (patch)
tree534c6f204faa86359703ad1cb7d591e87060533a /process.c
parent1c8ae6d7c27191a41dd3eeb8022699a105a52192 (diff)
downloadruby-0b28b9f3e982eaeb833ca130de2c30c7784ebae5.tar.gz
ruby-0b28b9f3e982eaeb833ca130de2c30c7784ebae5.tar.xz
ruby-0b28b9f3e982eaeb833ca130de2c30c7784ebae5.zip
* dir.c, eval.c, parse.y, process.c, ruby.c: avoid warning "unused
variable" [ruby-dev:26387] * dir.c (glob_helper): avoid warning "enumeration value `RECURSIVE' not handled in switch" [ruby-dev:26392] (patch from Kazuhiro NISHIYAMA) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/process.c b/process.c
index faa39d7a2..12ae0902c 100644
--- a/process.c
+++ b/process.c
@@ -1046,8 +1046,8 @@ rb_proc_exec(str)
if (nl) s = nl;
}
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
- int status;
#if defined(MSDOS)
+ int status;
before_exec();
status = system(str);
after_exec();
@@ -1055,7 +1055,7 @@ rb_proc_exec(str)
exit(status);
#elif defined(__human68k__) || defined(__CYGWIN32__) || defined(__EMX__)
char *shell = dln_find_exe("sh", 0);
- status = -1;
+ int status = -1;
before_exec();
if (shell)
execl(shell, "sh", "-c", str, (char *) NULL);
@@ -1532,7 +1532,13 @@ rb_syswait(pid)
int pid;
{
static int overriding;
- RETSIGTYPE (*hfunc)_((int)), (*qfunc)_((int)), (*ifunc)_((int));
+#ifdef SIGHUP
+ RETSIGTYPE (*hfunc)_((int));
+#endif
+#ifdef SIGQUIT
+ RETSIGTYPE (*qfunc)_((int));
+#endif
+ RETSIGTYPE (*ifunc)_((int));
int status;
int i, hooked = Qfalse;