The line below fails
|
if ! [[ "$nattached" =~ ^[0-9]+$ ]]; then |
for shmid 0 since my
ipcs yields:
------ Message Queues --------
key msqid owner perms used-bytes messages
0xdeadbeef 0 root 660 0 0
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0xee0af9ac 0 mu2ecrv 666 57674072 0
0xbb0af9ac 1 mu2ecrv 666 10486232 0
------ Semaphore Arrays --------
key semid owner perms nsems
The 0 from the Message Queues and the Shared Memory Segments sections get confused, resulting in nattached not beeing 0 but 0 0.
The line below fails
artdaq-daqinterface/bin/mopup_shmem.sh
Line 116 in 82b9ff7
for shmid 0 since my
ipcsyields:The 0 from the Message Queues and the Shared Memory Segments sections get confused, resulting in nattached not beeing
0but0 0.