Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring io-layer up to date on this branch too.
svn path=/branches/mono-1-1-8/mono/; revision=58462
- Loading branch information
Showing
36 changed files
with
3,282 additions
and
1,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <config.h> | ||
#include <glib.h> | ||
#include <errno.h> | ||
#include <sys/types.h> | ||
#include <sys/ipc.h> | ||
#include <sys/sem.h> | ||
|
||
#include <mono/io-layer/io-layer.h> | ||
|
||
/* We're digging into handle internals here... */ | ||
#include <mono/io-layer/handles-private.h> | ||
#include <mono/io-layer/wapi-private.h> | ||
#include <mono/io-layer/shared.h> | ||
|
||
int main (int argc, char **argv) | ||
{ | ||
int sem_id, ret; | ||
|
||
_wapi_shared_layout = _wapi_shm_attach(WAPI_SHM_DATA); | ||
if (_wapi_shared_layout == FALSE) { | ||
exit (0); | ||
} | ||
|
||
sem_id = semget (_wapi_shared_layout->sem_key, _WAPI_SHARED_SEM_COUNT, 0600); | ||
if (sem_id != -1) { | ||
ret = semctl (sem_id, IPC_RMID, 0); | ||
if (ret == -1) { | ||
g_message ("Error deleting semaphore: %s", | ||
g_strerror (errno)); | ||
} | ||
} | ||
|
||
exit (0); | ||
} |
Oops, something went wrong.