LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2005, 05:32 PM   #1
warrenpatrick
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Real Time Signals getting EPERM


Hi I'm running two processes one Client, one Server. The Client sends signals to the Server one for every request it makes. If I shoot plenty of requests to the Client using normal signals I end up losing some of them. So I decided to use Real Time Signals and I end up not losing any but I start getting every now and again OPERATION NOT PERMITTED (EPERM) but not always it's very strange. Could anyone tell me why? Thanks
 
Old 08-22-2006, 05:29 PM   #2
mhcox
Member
 
Registered: Aug 2005
Location: Albuquerque, NM
Distribution: Fedora
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by warrenpatrick
Hi I'm running two processes one Client, one Server. The Client sends signals to the Server one for every request it makes. If I shoot plenty of requests to the Client using normal signals I end up losing some of them. So I decided to use Real Time Signals and I end up not losing any but I start getting every now and again OPERATION NOT PERMITTED (EPERM) but not always it's very strange. Could anyone tell me why? Thanks
You're probably exceeding the size of some internal queue of RT signals because the rate your server can handle the request is slower than how fast your client can generate them. You're going to have to check for that error condition and retry (maybe after a short sleep). It is strange they're using EPERM for the errorno. I'd expect something like ENOSPACE.

Mike
 
Old 08-24-2006, 03:16 AM   #3
kshkid
Member
 
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
Quote:
Originally Posted by warrenpatrick
Hi I'm running two processes one Client, one Server. The Client sends signals to the Server one for every request it makes. If I shoot plenty of requests to the Client using normal signals I end up losing some of them. So I decided to use Real Time Signals and I end up not losing any but I start getting every now and again OPERATION NOT PERMITTED (EPERM) but not always it's very strange. Could anyone tell me why? Thanks
you have your process as client and sever and i could not understand why do you have to map a request that is sent from a client to server into a signal?
If its an indication to server through a signal then what is the need for a connection between client and server ?

( with the name usage of client and server )

and coming to the signals part...

how have you registered the signals in server in view of signal reception from client?
are the signal handlers registered through older or newer semantics ?

that would help to proceed further ...
 
Old 08-24-2006, 09:02 AM   #4
mhcox
Member
 
Registered: Aug 2005
Location: Albuquerque, NM
Distribution: Fedora
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by kshkid
you have your process as client and sever and i could not understand why do you have to map a request that is sent from a client to server into a signal?
If its an indication to server through a signal then what is the need for a connection between client and server ?
Now that someone else has mentioned what I was thinking, what the heck are you trying to do

Although my comment would be reversed: why do you need the signal when a notification to the server of data requested is implied by most IPC methods like pipes, sockets, etc. The only IPC medium I could think of that might need a signal would be shared memory, i.e. the client is modifying some shared memory and needs to notify the server a change has been made. Is that what you're doing?

Mike
 
Old 08-25-2006, 09:29 AM   #5
kshkid
Member
 
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
Quote:
Originally Posted by mhcox
Now that someone else has mentioned what I was thinking, what the heck are you trying to do

Although my comment would be reversed: why do you need the signal when a notification to the server of data requested is implied by most IPC methods like pipes, sockets, etc. The only IPC medium I could think of that might need a signal would be shared memory, i.e. the client is modifying some shared memory and needs to notify the server a change has been made. Is that what you're doing?

Mike
Quote:
what the heck are you trying to do
Isnt tht aggressive ? Not Needed Anyway.

Quote:
The only IPC medium I could think of that might need a signal would be shared memory
here also, if we write the implementation, you go for signals and signal comm, but we have already shared memory notifiers.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to do real time programs? frostmagic Programming 4 02-02-2004 10:53 AM
real-time OS h/w Programming 11 01-24-2004 08:28 PM
Real-Time programming javpogon Programming 5 09-04-2003 08:25 AM
run real time echox Programming 3 04-03-2003 02:01 PM
Real Time Plot... DaFrEQ Linux - Software 0 08-27-2002 08:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration