Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-28-2009, 07:28 PM   PM User | #1
aeon
New to the CF scene

 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
aeon is an unknown quantity at this point
Arrow Sockets and Interrupted system call

Just joined this site. Hi to everyone. Onwards to my problem:

I have a chat script running on my webserver (php). I do not have access to SSH / Telnet, so I used proc_open() to run my script.

The script is programmed to accept incoming socket connections, but for some reason, socket_select() gives an error: [4] Interrupted system call. This ends the script prematurely, disconnecting everyone who is logged into the chat.

For further reference, the chat script log is here: http://files.aeonus.com/chat.log.txt [scroll down to the bottom to see the error]

On searching google about this topic, I found out that for some unknown reason, the chat script is receiving a SIGINT (Interrupt signal) from the server, which usually happens when you run the script in terminal and press ^C (Control+C) to break it.

Can anyone suggest me a solution to this problem? Can the interrupt signal (SIGINT) be prevented? What might be causing it?

That is my first priority, since the signal can be ignored in php by using pcntl_signal() function, which requires process control library to be installed. (It isn't enabled by default)

Any help will be appreciated. Thanks.

~aeon
aeon is offline   Reply With Quote
Reply

Bookmarks

Tags
interrupted system call, proc_open, select, sigint, sockets

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:47 AM.


Advertisement
Log in to turn off these ads.