ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Jan-Apr/loginwindow-applications-and-pipes

This is loginwindow-applications-and-pipes in view mode; [Up]


Date: Sun 22-Feb-1989 16:28:56 From: Unknown Subject: loginwindow applications and pipes I've been conducting some experiments with processes that are begun right after login by loginwindow and before the Workspace manger (they're started by using "dwrite loginwindow Workspace <program path>"). I've learned a trick about the standard I/O file descriptors that is worth passing on: processes launched from loginwindow have only a stdin, and neither a stdout nor a stderr. So, if your application is using a pipe to some other application - e. g., to /etc/disk - you can't use the usual pipe/dup2/close techniques, because you may accidentally close one of the pipe descriptors that you need. First you should open /dev/null and dup2 it to stdout and sterr, then use pipe, dup2 and close in their normal order. >From: abe@mace.cc.purdue.edu (Vic Abell)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.