public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* script input redirection / eof handling
@ 2013-10-31 14:21 Phillip Susi
  2013-12-02 12:36 ` Karel Zak
  0 siblings, 1 reply; 9+ messages in thread
From: Phillip Susi @ 2013-10-31 14:21 UTC (permalink / raw)
  To: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I came across an old bug filed in debian about script being redirected
from a file misbehaving.  It seems that when the master ( input )
process hits eof, it exits immediately, orphaning the child ( output )
and user processes.

I believe the correct thing to do is signal the eof to the user
process and wait for the children to exit, but I'm not sure how to
make a pty signal eof.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJScmdWAAoJEJrBOlT6nu75JIQH/1Eqt6gsG+vKGc8xpybIE6F7
UGgo8sLyn++PE3U6MZQcsWj2nHZ6p76uHOp4Kn1sk8xrb2zetueQTF1idtgJO7nS
PKhwbfInD3ocSuEQB1HygMmKTKuXT9qYCBj18AT9ZQp7eQ5ocz+nvNnGHQuR4KPR
/CsI0D0/BnTO32ayh6qgE1HtxD0sUY4K1Qw3MyyChINwFAU9q8p3Y9Lz5RqQTTZk
2j3kc6jDdNaGy1b6w1exhEMrhs7zC1LRvz5GhqM+ODVAN/YiMh4eKYH9a4OrYXru
l8Df0gDWNRrQhqrJxvOMKph/DZO1sZEZP3ZG/kOXak/cpbHVy0MkGepP0qId91g=
=ZaJO
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-12-03 12:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 14:21 script input redirection / eof handling Phillip Susi
2013-12-02 12:36 ` Karel Zak
2013-12-02 12:54   ` Karel Zak
2013-12-02 14:45     ` Phillip Susi
2013-12-02 17:02       ` Karel Zak
2013-12-02 18:06         ` Phillip Susi
2013-12-02 22:36           ` Karel Zak
2013-12-02 23:25           ` Karel Zak
2013-12-03 12:55             ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox