Firefly and PC GAMESS-related discussion club


 
Learn how to ask questions correctly  
 
 
We are NATO-free zone
 



Re^2: p4_error: semget failed for setnum 0

Alex Granovsky
gran@classic.chem.msu.su


Hi,

Another, a bit simpler solution is to use cleanipcs script of mpich1
distribution. I've attached this script to my post. You need to
download and ungzip it, put it somewhere, change attributes to allow
execution and run it.

All the best,
Alex

On Thu Nov 21 '13 1:15pm, Pedro Silva wrote
-------------------------------------------
>1st:

>Export the list of semaphors to a file using
>
>
>ipcs > file_name
>
>
>Then, open file_name with your favorite text editor. Delete all lines up to (en including) the text:

>"------ Semaphore Arrays --------"
>
>
>you will be left with a list of semaphores like :

>key � � � � semid � � owner � perms nsems
>0x3c81b7f6 0 � � � � �pedros � 666 � �1
>0xcbc384f8 59375617 � pedros � 600 � �1
>0x00000000 244482050 �pedros � 600 � �25
>0x00000000 244514819 �pedros � 600 � �25
>0x00000000 244547588 �pedros � 600 � �1
>
>
>the numbers on your "semid" column are the identifications of the semaphores you should kill, using the command ipcrm -s . In the example above I would do the following:

>ipcrm -s 244482050
>ipcrm -s 244514819
>ipcrm -s 244547588
>
>
>I hope I have not been too confusing :-)

>Pedro S.
>
>
>

This message contains the 1 kb attachment
[ cleanipcs_1.gz ] cleanipcs script


[ Previous ] [ Next ] [ Index ]           Thu Nov 21 '13 3:10pm
[ Reply ] [ Edit ] [ Delete ]           This message read 996 times