From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: popen() in cygwin.dll 24 Jan 1997 06:56:36 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC09CA.B4257A10.cygnus.gnu-win32@sos> Original-To: "'Corinna Kinchin'" , "'Geoffrey Noer'" Original-Cc: "'gnu-win32 AT cygnus DOT com'" Encoding: 77 TEXT Original-Sender: owner-gnu-win32 AT cygnus DOT com Geoffrey Noer wrote: > > I'm finding that the popen() function call always returns NULL. > > Has anyone else encountered this? Is it a known "feature"? > > If this is happening, it's definitely a bug. Unless someone out > on the net solves the problem and gets me a patch to the appropriate > cygwin32 code in src/winsup this may not get looked into soon due to > extreme time constraints. I don't see any problems: 7:/usr/src$ cat tst.c #include main() { FILE *f; if((f=popen("ls","r")) == NULL) { perror("Popen"); exit(1); } while(!feof(f)) putchar(getc(f)); } 8:/usr/src$ gcc -o tst tst.c 9:/usr/src$ tst CLS.CC Mail/ SYSTEM.C TSOCK.C a.out apimon.log apitrace.log cygnus/ file-3.20.1/ finddupe/ inetd/ inetutils-1.2/ iostone iostone.c joe/ less-321/ lynx2-5/ man/ man-1.4d/ mc-3.2.1/ ncurses-1.9.9e/ net/ ntxlib/ rcs-5.7/ rman-2.1/ rxvt-2.18/ slirp-0.9m/ sockets/ t.c t.sh tclhttpd-1.0.1/ telnetd telnetd.c termcap-1.3/ tkman-1.5/ tkman-1.8b4/ tkman-2.0a3/ tst.c tst.exe unarj/ unzip/ uudecode.c uuencode.c vt/ xc/ 10:/usr/src$ --- Sergey Okhapkin Moscow, Russia Looking for a job - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".