Skip to content

Instantly share code, notes, and snippets.

@mwgamera
Created May 15, 2014 00:57
Show Gist options
  • Select an option

  • Save mwgamera/2fcc32993ef926cd60fa to your computer and use it in GitHub Desktop.

Select an option

Save mwgamera/2fcc32993ef926cd60fa to your computer and use it in GitHub Desktop.
#include "gophernicus.h"
#include <assert.h>
int main() {
int shmid;
shm_state *shm;
shmid = shmget(SHM_KEY, sizeof(shm_state), 0);
assert(shmid != -1);
shm = shmat(shmid, NULL, 0);
assert(shm != (void*) -1);
shm->start_time = 0;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment