简体   繁体   中英

Signal to send string to child process

For my assignment I'm given the question to have a parent process send "user inputted" lines of text VIA signal to the child and have it print out the line of text.

I'm seriously confused. I've read the whole chapter in my book on signals and it seems for the most part they are only used for termination, pauses, alerts. I originally thought through the alerts I could do that, But I'm honestly unsure. Is there a way to pass data through signals.

POSIX signals (what we call signals in UNIX speak), are just events, so the only data you are sending is that it happened. This does of course not prevent people from talking about signals in other contexts or with different meanings...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM