[Title] change screenshot file name for multi process application submit/tizen_2.2/20130717.151335
authorgreatim <jaewon81.lim@samsung.com>
Wed, 3 Jul 2013 06:25:26 +0000 (15:25 +0900)
committergreatim <jaewon81.lim@samsung.com>
Wed, 3 Jul 2013 06:25:26 +0000 (15:25 +0900)
[Desc.]
[Issue]

Change-Id: I149a87e4cc5a267a2d9eded70c705a09a1db6d3b

helper/dacapture.c
packaging/dynamic-analysis-probe.changes [new file with mode: 0644]
packaging/dynamic-analysis-probe.spec

index 47d21c1..fd3ae3d 100755 (executable)
@@ -29,9 +29,9 @@
  */
 
 #include <stdlib.h>            // for system
-#include <sys/types.h> // for stat
+#include <sys/types.h> // for stat, getpid
 #include <sys/stat.h>  // fot stat, chmod
-#include <unistd.h>            // fot stat
+#include <unistd.h>            // fot stat, getpid
 #include <sys/shm.h>   // for shmget, shmat
 
 #include <X11/Xlib.h>
@@ -318,7 +318,7 @@ int captureScreen()
                ev = create_canvas(width, height);
                if(likely(ev != NULL))
                {
-                       sprintf(dstpath, SCREENSHOT_DIRECTORY "/%d.png", probeInfo.eventIndex);
+                       sprintf(dstpath, SCREENSHOT_DIRECTORY "/%d_%d.png", getpid(), probeInfo.eventIndex);
 
                        // make image buffer
                        if((img = evas_object_image_add(ev)) != NULL)
diff --git a/packaging/dynamic-analysis-probe.changes b/packaging/dynamic-analysis-probe.changes
new file mode 100644 (file)
index 0000000..5e3aa16
--- /dev/null
@@ -0,0 +1,4 @@
+* 2.2.0
+- change screenshot file name for multiprocess application
+== Jaewon Lim <jaewon81.lim@samsung.com> 2013-07-03 15:00
+
index 9bd7d58..362ed17 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dynamic-analysis-probe
 Summary:    dynamic analyzer probe library
-Version:    2.1.1
+Version:    2.2.0
 Release:    1
 Group:      System/Libraries
 License:       GNU Lesser General Public License, Version 2.1