home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!swrinde!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!mjs
- From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: Mkdir in fork
- Message-ID: <7371192@hpfcso.FC.HP.COM>
- Date: 30 Jul 92 16:43:33 GMT
- References: <1992Jul30.105754.7370@hp9000.csc.cuhk.hk>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Lines: 20
-
- In comp.sys.hp, a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
-
- > execve ("/bin/mkdir", argv, envp);
- > /*
- > * The execve() failed!
- > */
- > printf ("Utility [nqsmkdirs]: Unable to execve() ");
- > printf ("mkdir program.\n");
- > printf ("Utility [nqsmkdirs]: Reason: %s.\n",
- > sys_errlist [errno]);
-
- A guess - the intervening printf's may be resetting "errno" to 0 after the
- failed execve. Try saving the value of errno before printing your messages,
- or print errno in the first printf call after the failed execve.
-
- --------------
- Marc Sabatella (marc@hpmonk.fc.hp.com)
- Disclaimers:
- 2 + 2 = 3, for suitably small values of 2
- Bill (H.) and Dave (P.) may not always agree with me
-