summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.ru>2016-05-14 20:38:54 +0000
committerSergey Nazaryev <sergey@nazaryev.ru>2016-05-14 20:38:54 +0000
commit4f36da5df51ce984201b56b794f04fea8c8e9e9e (patch)
tree025b092235327959876cceb13c41abd7f702fc78
parentb26d56275e4d7e88d1317372c335d2797e3928eb (diff)
downloadpa3-4f36da5df51ce984201b56b794f04fea8c8e9e9e.zip
pa3-4f36da5df51ce984201b56b794f04fea8c8e9e9e.tar.gz
pa3-4f36da5df51ce984201b56b794f04fea8c8e9e9e.tar.bz2
Strange workaround from old labs
-rw-r--r--Makefile2
-rw-r--r--child.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e3df556..67dd8b7 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CC = clang
all: pa3
pa3: lamport.o bank_robbery.o banking.o pa3.o parent.o child.o ipc.o dist.o
- $(CC) -o $@ $^ -L. -lruntime
+ $(CC) -o $@ $^ -Llib64 -lruntime
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
diff --git a/child.c b/child.c
index eeac0b9..e4f1597 100644
--- a/child.c
+++ b/child.c
@@ -10,6 +10,7 @@
void child_phase0( dist_info_t *info, uint8_t id ) {
lamport_init( &gl_lamport_time );
+ lamport_increase( &gl_lamport_time );
close_redundant_pipes( info, id );
}