22 Commits

Author SHA1 Message Date
Ian Gulliver
521cc806fb Apparently programs expect their stdin to be blocking 2016-03-10 21:42:58 -08:00
Ian Gulliver
c5f117dce5 Make exec sockets nonblocking. Fix FD leakage when more than one exec is running. 2016-03-10 21:36:40 -08:00
Ian Gulliver
88c40641bd Use SIGCHLD, setpgid(), etc. for normal child handling, instead of being fancy. 2016-03-09 20:20:12 -08:00
Ian Gulliver
5056380bd4 Get the exec children back in our progress group/session, and unblock signals to them. 2016-03-09 18:40:29 -08:00
Ian Gulliver
3985182304 Stop relying on struct ordering and packing for peer. 2016-03-08 20:47:22 -08:00
Ian Gulliver
d39cd62991 Cleanup how we cast and close peers. 2016-03-08 20:41:00 -08:00
Ian Gulliver
cd302a1746 Move FORMAT parsing into send code. 2016-03-08 12:22:46 -08:00
Ian Gulliver
e5af92c331 Add --detach. Add multi-pass flag parsing that lets us get things in the right order. 2016-03-08 11:26:39 -08:00
Ian Gulliver
b434b67dd8 Switch to LOG macro 2016-03-07 17:02:24 -08:00
Ian Gulliver
ff4f4da608 deheader cleanup 2016-03-07 15:19:00 -08:00
Ian Gulliver
46696933aa Add --log-file 2016-03-07 11:26:25 -08:00
Ian Gulliver
51eaabe27a Format attributes go in the header, and I are dumb. 2016-03-06 22:08:04 -08:00
Ian Gulliver
ca754a817e Cleaner logging of child output 2016-03-06 18:57:37 -08:00
Ian Gulliver
c7e1754239 Capture & log child output, rather than sharing our stderr with them. 2016-03-06 18:50:15 -08:00
Ian Gulliver
6480a960fa Switch to standard logging framework 2016-03-05 22:54:26 -08:00
Ian Gulliver
2f6db632b2 Get everyone out of flow's business. 2016-03-02 22:25:56 -08:00
Ian Gulliver
14be11de79 Utility functions for reference counting. 2016-03-02 19:20:25 -08:00
Ian Gulliver
e2fd6be394 List cleanup. 2016-03-02 18:52:02 -08:00
Ian Gulliver
58177c93a6 More file scaffolding. 2016-03-02 14:23:58 -08:00
Ian Gulliver
b106887617 Clean up file and hello messes. 2016-02-29 20:49:36 -08:00
Ian Gulliver
3fb3c02cf5 Encapsulate flow descriptions inside a struct. 2016-02-29 17:12:06 -08:00
Ian Gulliver
58a8576da8 Add --exec-{send,receive} 2016-02-28 15:53:55 -08:00