Loosing signals even with sigqueue


 
Thread Tools Search this Thread
Top Forums Programming Loosing signals even with sigqueue
# 8  
Old 12-13-2006
It looks to me like your code should work. What version of Unix are you using? Have you searched for any kernel patches that might fix your kernel?

I do continue to have reservations about your use of sigqueue. Should your kernel start to work correctly, your program should then correctly start to document the loss of signals. You need to check for the queue being full. By putting printf's and fflush's in you signal handler you are greatly exacerbating any problems the parent will have in processing signals fast enough.
# 9  
Old 12-13-2006
I putted printf & fflush statements for debugging purposes.The problem still exists without these statements..

I have a Linux 2.4.31 kernel, I'm using SlackWare 10.2 over VMware Workstation 5.5.I also have a telnet & ftp access to a SUSE LINUX Enterprise Server 9 (x86_64) - Kernel 2.6.5-7.276-smp.Problems are the same...

While experimenting I found that by simply using kill, fewer signals are lost.
# 10  
Old 12-13-2006
Just for the heck of it, I would try SIGRTMIN rather than SIGUSR1, which should be easy to try. If it is failing on a 2.6 kernel with smp support, there is not much point in trying another kernel. Although there is a product called RTLinux which claims complete Posix Realtime compliance link.
# 11  
Old 12-13-2006
Well here is something unexpected Smilie :

SIGRTMIN worked on the Linux 2.4.31 kernel of SlackWare 10.2
but
failed on the SUSE LINUX Enterprise Server 9 (x86_64) - Kernel 2.6.5-7.276-smp.
# 12  
Old 12-13-2006
Well, SuSE is actually a supported product. Maybe you can ask Novell for a patch.
# 13  
Old 12-13-2006
Thank you for your help.

I'm finaly droping signals.I have a solution using sockets that works with no problems on different machines.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Loosing connection after authentication

Hi! I am having a problem when logging in on a solaris 10 server, after typing one or two commands, I lose connectivity, with the following message: server unexpectedly closed network connection I have checked the following: grep `uname -n` /etc/inet/hosts /etc/inet/ipnodes... (8 Replies)
Discussion started by: fretagi
8 Replies

2. UNIX and Linux Applications

Samba loosing SID UID mapping

Hi all, I don't know how many times I've setup samba shares, but... It's been a while since the last time. The SID UID maps used to always seem random. I.E. if I had to move the data to another box, I'd have to note all of the SID / UID relations and write scripts to convert them on the new... (0 Replies)
Discussion started by: mph
0 Replies

3. UNIX for Dummies Questions & Answers

How can i sort a .txt file without loosing the header information?

Hi, I'm trying to sort 2 different .txt tab delimited files with the command line: sort -k 1b,1 inputfile > outputfile But doing that i'm also sorting the header (that ends at the end of my file). How can i sort a .txt file without sorting the header but conserving the header in the... (3 Replies)
Discussion started by: alisrpp
3 Replies

4. Homework & Coursework Questions

Loosing formatting when echoing an awk script

1. The problem statement, all variables and given/known data: When I echo out the output of my awk script I loose the formatting that I set in my awk script (it should be in a table format). 2. Relevant commands, code, scripts, algorithms: 3. The attempts at a solution (include all... (2 Replies)
Discussion started by: ROFL
2 Replies

5. SCO

SCO box loosing network connection

Hello, We have a SCO box running OpenServer 5.0.5. This has our business software on it (15 users connecting via terminal emulator (ansio lite)) which has been running for about 12-15yrs strong! Within the past 6-8 months, at random times of the day, we've been loosing connection to this box. ... (8 Replies)
Discussion started by: rpcbrielle
8 Replies

6. What is on Your Mind?

You know your on the brink of loosing it when.....

you spend an entire day with scripting nightmares and go to bed real late in the early morning hrs to wake up to your gf asking you a question and your only answer is "It's in the script" LMAO Happened to me this morning would you believe that?? My daughter is 10yrs old and my gf wanted to check... (3 Replies)
Discussion started by: phpfreak
3 Replies

7. Shell Programming and Scripting

Replacing Carriage returns without loosing EOL

Hello, I have read a few threads on this subject and tried a few things out, but still come up short. There was one good example, then the last reply was something to the effect of 'Use Sed' & 'Read a book'... Well I read a bunch of online tutorials on sed, awk, tr, but still can't get the... (2 Replies)
Discussion started by: Majiktom
2 Replies

8. Shell Programming and Scripting

replace ascii chars without loosing it.

Hi, Can some one tell, how to replace ascii non printable TAB from the while to something, then later on replace it back to TAB. Basciallz we do bulk data processing, our processin treats TAB as new field , So I thought we can replace it with something and later on revert it. TIA (4 Replies)
Discussion started by: braindrain
4 Replies

9. UNIX for Dummies Questions & Answers

How to install FreeBSD without loosing my data?

hi. I am newbie in Unix. I wanted to install Free BSD 5.2.1 to my computer which winXp was already installed. But i couldn't. I chose Standard. Then it said you are going to use dos style fdisk partitioning. Then a window displayed begining like this. WARNING: A geometry of 155127/16/63 for... (0 Replies)
Discussion started by: sualcavab
0 Replies

10. UNIX for Dummies Questions & Answers

Linux without loosing Win9x

If you wan't to try Linux but don't want to lose Micro$oft Win, 3 basic options. You can buy a new Disk ( wich aren't as expensive as they were) and install it there. You can partition your disk so that you'll be able to boot under win or linux. Or you can run VMware, wich is a great Virtual... (2 Replies)
Discussion started by: merlinpr
2 Replies
Login or Register to Ask a Question