From: <no...@so...> - 2002-07-05 20:34:44
|
Bugs item #219149, was opened at 2000-10-26 01:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=219149&group_id=10894 Category: 26. Channel Types Group: = 8.0p2 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Andreas Kupries (andreas_kupries) Summary: bad interaction of input redirect from named pipe with backg Initial Comment: OriginalBugID: 950 Bug Version: 8.0p2 SubmitDate: '1998-12-14' LastModified: '1999-12-07' Severity: SER Status: Assigned Submitter: pat ChangedBy: hobbs OS: Linux Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Harald ReproducibleScript: Run the following script. #!/bin/sh # exec tclsh8.0 "$0" exec mkfifo fifo puts [exec cat <fifo >@stdout &] ObservedBehavior: Although there is an `&' at the end of the exec-arguments, the exec does not return. DesiredBehavior: If `&' is at the end of exec-args, exec should always return soon, independent of input redirection. There is a not-so-perfect workaround. The fifo can be opened with NONBLOCK and the handle to the opened fifo can be used to redirect input. However then the child-process sees a non-blocking input channel, which is probably not what was intended. -- Verified in 8.2.2 on Solaris. -- 12/07/1999 hobbs ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2002-07-05 16:34 Message: Logged In: YES user_id=80530 Is this still a valid bug report? If so, it may be the oldest Open bug in Tcl. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2001-09-11 16:00 Message: Logged In: YES user_id=75003 Harald = <ki...@ii...> ... Harald Kirsch, author of 'bras'. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=219149&group_id=10894 |