Change references from hackpid to g.hackpid in various ports.

This commit is contained in:
Bart House
2018-12-22 14:43:50 -08:00
parent b863fad3ea
commit c9565d4ef6
5 changed files with 10 additions and 10 deletions

View File

@@ -243,8 +243,8 @@ getlock(void)
if (fd == -1) {
error("cannot creat lock file.");
} else {
if (write(fd, (genericptr_t) &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
if (write(fd, (genericptr_t) &g.hackpid, sizeof(g.hackpid))
!= sizeof(g.hackpid)) {
error("cannot write lock");
}
if (close(fd) == -1) {

View File

@@ -448,8 +448,8 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
if (fd < 0) {
raw_print("Cannot create lock file");
} else {
hackpid = 1;
write(fd, (genericptr_t) &hackpid, sizeof(hackpid));
g.hackpid = 1;
write(fd, (genericptr_t) &g.hackpid, sizeof(g.hackpid));
nhclose(fd);
}
#ifdef MFLOPPY

View File

@@ -218,8 +218,8 @@ gotlock:
#endif
error("cannot creat file (%s.)", fq_lock);
} else {
if (write(fd, (char *) &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
if (write(fd, (char *) &g.hackpid, sizeof(g.hackpid))
!= sizeof(g.hackpid)) {
#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
chdirx(orgdir, 0);
#endif

View File

@@ -144,8 +144,8 @@ gotlock:
if (fd == -1) {
error("cannot creat lock file.");
} else {
if (write(fd, (char *) &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
if (write(fd, (char *) &g.hackpid, sizeof(g.hackpid))
!= sizeof(g.hackpid)) {
error("cannot write lock");
}
if (close(fd) == -1) {

View File

@@ -226,8 +226,8 @@ gotlock:
if (fd == -1) {
error("cannot creat lock file (%s.)", fq_lock);
} else {
if (write(fd, (char *) &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
if (write(fd, (char *) &g.hackpid, sizeof(g.hackpid))
!= sizeof(g.hackpid)) {
error("cannot write lock (%s)", fq_lock);
}
if (close(fd) == -1) {