OT: chytani signalu behem wait

Radim Kolar kolar.radim at gmail.com
Wed Dec 9 20:45:26 CET 2009


mam nasledujici problem. na bsd nemuze shell chytat signaly kdyz dela
wait. Nevite nejaky workaround? Na solarisu to funguje fajn.

#!/bin/sh
signaltrap()
{
   echo "got signal"
}
trap signaltrap int term quit

sleep 500 &

wait $!


More information about the Users-l mailing list