about summary refs log tree commit diff stats
path: root/ntcoin
diff options
context:
space:
mode:
authorlogin <login@tilde.team>2022-05-18 17:21:32 +0000
committerlogin <login@tilde.team>2022-05-18 17:21:32 +0000
commite50751da3901c32aaef1f940ce628fc93e36d95e (patch)
tree72935eda3d26e69ec1728c53463c44d869728d89 /ntcoin
parentcad83e8167ce6dd68f2ac47750de5248b568177e (diff)
downloadtcoin-e50751da3901c32aaef1f940ce628fc93e36d95e.tar.gz
Try-catch blocks in those cases where fork() fails
I've tried to add try-catch blocks in those cases where fork()s fail.
It doesn't quite work well though.
Diffstat (limited to 'ntcoin')
-rwxr-xr-xntcoin4
1 files changed, 4 insertions, 0 deletions
diff --git a/ntcoin b/ntcoin
index 7d91bfd..b781358 100755
--- a/ntcoin
+++ b/ntcoin
@@ -259,5 +259,9 @@ else
       /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" ~/"bin/compile_pcoin"
       /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" ~/"bin/edit_pcoin"
     fi
+    /bin/echo '#!/bin/bash
+'`which nano`' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin"
+    /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin"
+    /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin" ~/"bin/edit_ptcoin"
   fi
 fi