[SciPy-user] shared memory machines

Gael Varoquaux gael.varoquaux@normalesup....
Wed Feb 11 02:35:04 CST 2009


On Tue, Feb 10, 2009 at 06:23:13PM -0500, Philip Semanchuk wrote:
> One problem I see is that the call to shmget() specifies no  
> permissions. The third param to shmget() should  contain two sets of  
> bitwise params OR-ed together. The first set is IPC_CREAT and  
> IPC_EXCL, the second set is the permissions. So you might want to  
> change line 156 to this:
> shmid = shmget(key, buf_size, IPC_CREAT | IPC_EXCL | 0600)
> or this:
> shmid = shmget(key, buf_size, IPC_CREAT | IPC_EXCL | 0666)

Indeed, Philip, that was it. Thanks a lot for your help.

Gaël


More information about the SciPy-user mailing list