How to kill disowned process which calls getchar() in code

Hi,

What happens to process state when getchar() is called? I wrote a C code in which I call getchar() somewhere down the road. I forgot about that, I started the process, put it in bg and disowned it using "disown". Now, how do I see where that process has gone/how do kill it?

Thanks,
Amrut

Nothing in particular happens when you use getc beyond that it tries to read from the buffer, and if the buffer's empty, tries to read from whatever's attached to stdin.

You kill it with kill <pid>

1 Like