Alex Granovsky
gran@classic.chem.msu.su
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 >ipcrm -s 244482050 >Pedro S.
>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
>ipcrm -s 244514819
>ipcrm -s 244547588
>
>
>I hope I have not been too confusing :-)
>
>
> This message contains the 1 kb attachment
[ cleanipcs_1.gz ] cleanipcs script
Thu Nov 21 '13 3:10pm
This message read 1051 times