Hello,
I'm using a client server example which can be found at:
Client Server example with PIPES ~ Coding Freak
I was hoping if someone could help me understand how to make it so that the pipe PUBLIC is automatically removed when the server gets killed through Ctrl-C. I believe this involves using an interrupt handler but not sure how to do this.
The client is described first (in the article) followed by the server. When ready to launch, I first start the server in the background by using ./server & followed by running the client. The CMD prompt allows the user to type anything and it goes through the server. As of now, when Ctrl-C is used it kills the client but the server is still running with the PUBLIC pipe. Any help would be greatly appreciated.
Thanks,
Bill
I'm using a client server example which can be found at:
Client Server example with PIPES ~ Coding Freak
I was hoping if someone could help me understand how to make it so that the pipe PUBLIC is automatically removed when the server gets killed through Ctrl-C. I believe this involves using an interrupt handler but not sure how to do this.
The client is described first (in the article) followed by the server. When ready to launch, I first start the server in the background by using ./server & followed by running the client. The CMD prompt allows the user to type anything and it goes through the server. As of now, when Ctrl-C is used it kills the client but the server is still running with the PUBLIC pipe. Any help would be greatly appreciated.
Thanks,
Bill
Comment