Article View: news.software.readers
Article #5544Weird Tin 1.21 system() problem on Pyramid
From: Sean Casey
Date: Thu, 26 Aug 1993 17:11
Date: Thu, 26 Aug 1993 17:11
26 lines
1498 bytes
1498 bytes
I'm using Tin 1.21 on a Pyramid (OSX 5.1) in the UCB universe. In the
invoke_cmd() routine, system() always returns -1, whether the executed
command succeeds or not. I've changed shells, and even hardcoded in
the following:
misc.c line ~455:
#if defined(SIGCHLD) && !defined(RS6000) && !defined(PYRAMID)
system (nam);
ret = system_status;
#else
ret = system(nam);
fprintf(stderr, "Ret = %d\n", system("/bin/true")); sleep (3);/* CSC*/
#endif
Which prints Ret = -1. The exact same code in a one-liner C program
outputs Ret = 0.
Postings always look like they fail, even if they don't. Any ideas?
Sean
--
``Wind, waves, etc. are breakdowns in the face of the commitment to
getting from here to there. But they are conditions for sailing -- not
something to be gotten rid of, but something to be danced with.''
Technical Details
Message-ID:
<Aug.26.13.11.21.1993.15166@pilot.njin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!dziuxsolim.rutgers.edu!pilot.njin.net!cscShow Full Headers
Complete Article Headers
Message-ID: <Aug.26.13.11.21.1993.15166@pilot.njin.net> Subject: Weird Tin 1.21 system() problem on Pyramid Date: Thu, 26 Aug 1993 17:11:21 +0000 From: csc@pilot.njin.net (Sean Casey) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!dziuxsolim.rutgers.edu!pilot.njin.net!csc Newsgroups: news.software.readers Organization: College of Life, Davis, CA Lines: 26