Frédéric Heulin wrote: > Furthermore wordexp seems not that portable (on other platforms such as > Windows). > So you are right, I might avoid it altogether in the (near) future. > > Meanwhile is blocking SIGCHLD while performing wordexp would do the trick ? > > I am not sure wordexp operations can be considered enough brief (as signal > blocking use is suggested.)
I'm not sure what brevity has to do with the issue -- blocked signals will eventually be delivered after they're unblocked; they're not lost -- but, yes, most operations there should be fairly brief. I'd expect it to take a few milliseconds at most. The exception would be if the user's input that's being parsed contains expressions that invoke external commands (`` or $()); those could run for arbitrary periods of time. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code